﻿<%@ Page Title="Hỏi Đáp" Language="C#" MasterPageFile="~/HoangThinh.master" AutoEventWireup="true" CodeFile="FAQ.aspx.cs" Inherits="FAQ" %>

<%@ Register src="Site_map.ascx" tagname="Site_map" tagprefix="uc1" %>
<%@ Register src="Register_Online.ascx" tagname="Register_Online" tagprefix="uc2" %>
<%@ Register src="Customer_care.ascx" tagname="Customer_care" tagprefix="uc3" %>

<%@ Register assembly="CollectionPager" namespace="SiteUtils" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link rel="Stylesheet" type="text/css" href="styles/faq.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div id="faq-content">
        <div id="faqcontent">
            <div class="left-content">
                <div id="faqicon">
                    <a id="icon"></a>
                    <a id="faqtitle">Hỏi Đáp</a>
                </div>
                <div id="faqintroduct">
                    <div class="introtitle">Đặt câu hỏi của bạn</div>
                    <div id="introcontent">
                        <p>London (CNN) -- Both sides of the Atlantic, from the furthest spectrum of politics, two men George Galloway, for those of you who may not have been closely following his every utterance (I’m with you there), has been defending WikiLeaks founder Julian Assange who is holed up in the Ecuadorian Embassy behind  
wannabe Republican Senator Todd Akin and, from the supposed British socialist left, Respect Party MP George Galloway -- seem to have lost touch with reality.?</p>
                    </div>
                    <div id="faqform">
                        <div id="faqline">
                            <table width="100%">
                                <tr>
                                    <td style="text-align: center;">
                                        <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="name"><label>Họ & tên</label></div>
                                        <div class="fieldvalue">
                                            <asp:TextBox ID="txtName" runat="server" CssClass="faqfield"></asp:TextBox>
                                        </div>
                                        <div class="validate">
                                            <asp:RequiredFieldValidator ID="valName" runat="server" 
                                                ControlToValidate="txtName" Display="Dynamic" 
                                                ErrorMessage="Vui lòng nhập đầy đủ tên !!" ForeColor="Red" 
                                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="valExpName" runat="server" 
                                                ControlToValidate="txtName" Display="Dynamic" 
                                                ErrorMessage="Nhập đúng tên của bạn !!" ForeColor="Red" SetFocusOnError="True" 
                                                ValidationExpression="[^']{2,100}"></asp:RegularExpressionValidator>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="name"><label>Tiêu đề</label></div>
                                        <div class="fieldvalue">
                                            <asp:TextBox ID="txtTittle" runat="server" CssClass="faqfield"></asp:TextBox>
                                        </div>
                                        <div class="validate">
                                            <asp:RequiredFieldValidator ID="valTitle" runat="server" 
                                                ControlToValidate="txtTittle" Display="Dynamic" 
                                                ErrorMessage="Vui lòng nhập tiêu đề !!" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="valExpTitle" runat="server" 
                                                ControlToValidate="txtTittle" Display="Dynamic" 
                                                ErrorMessage="Tiêu đề không hợp lệ !!" ForeColor="Red" SetFocusOnError="True" 
                                                ValidationExpression="[^']{6,150}"></asp:RegularExpressionValidator>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="name"><label>Email</label></div>
                                        <div class="fieldvalue">
                                            <asp:TextBox ID="txtEmail" runat="server" CssClass="faqfield"></asp:TextBox>
                                        </div>
                                        <div class="validate">
                                            <asp:RequiredFieldValidator ID="valEmail" runat="server" 
                                                ControlToValidate="txtEmail" Display="Dynamic" 
                                                ErrorMessage="Vui lòng nhập email của bạn !!" ForeColor="Red" 
                                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="valExpEmail" runat="server" 
                                                ControlToValidate="txtEmail" Display="Dynamic" 
                                                ErrorMessage="Không đúng định dạng email !!" ForeColor="Red" 
                                                SetFocusOnError="True" 
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="name"><label>Câu hỏi</label></div>
                                        <div class="fieldvalue">
                                            <asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" CssClass="question"></asp:TextBox>
                                        </div>
                                        <div class="validate">
                                            <asp:RequiredFieldValidator ID="valQuest" runat="server" 
                                                ControlToValidate="txtQuestion" Display="Dynamic" 
                                                ErrorMessage="Vui lòng nhập câu hỏi của bạn !!" ForeColor="Red" 
                                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="valExpQuest" runat="server" 
                                                ControlToValidate="txtQuestion" Display="Dynamic" 
                                                ErrorMessage="Nội dung câu hỏi không hợp lệ !!" ForeColor="Red" 
                                                SetFocusOnError="True" ValidationExpression="[^']{6,450}"></asp:RegularExpressionValidator>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td id="send">
                                        <asp:Button ID="btnSend" runat="server" Text="Gửi Câu Hỏi" 
                                            CssClass="buttonsend" onclick="btnSend_Click" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <div id="linefaq"></div>
                <div id="quescontent">
                    <div class="introtitle">Các câu hỏi trước đó</div>
                    <asp:DataList ID="dtlFAQ" runat="server">
                        <ItemTemplate>
                            <div class="qsingcontent">
                                <div class="qdate">
                                    <p>Ngày: <%# Eval("DateQuestion") %></p>
                                </div>
                                <div class="qname">
                                    <p>Từ: <%# Eval("FullName") %></p>
                                </div>
                                <div class="qtitle">
                                    <h2>Tiêu đề: <%# Eval("Title") %></h2>
                                </div>
                                <div class="qcont">
                                    <p><%# Eval("Question") %></p>
                                </div>
                                <div class="answer">
                                    <p><a class="ansname">Trả lời: </a><%# Eval("Answer") %></p>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                    <div id="qpager">
                        <cc1:CollectionPager ID="pager" runat="server" BackNextLocation="Split" 
                            BackNextStyle="Padding: 0 8px 0 8px;" ControlCssClass="collpager" 
                            ControlStyle="" LabelText="Trang" PageNumbersSeparator="&amp;nbsp;" 
                            PageSize="5" ResultsFormat="" 
                            ResultsStyle="PADDING-BOTTOM:4px;PADDING-TOP:4px;FONT-WEIGHT: bold;" 
                            SectionPadding="20" ShowLabel="False" ShowPageNumbers="True" SliderSize="4" 
                            UseSlider="True">
                        </cc1:CollectionPager>
                    </div>
                </div>
            </div>
            <div class="right-content">
                <div class="rightnav">
                    <uc2:Register_Online ID="Register_Online1" runat="server" />
                    <div id="contactform">
                        <div class="rightnav-head">Liên Hệ Trực Tuyến</div>
                        <div id="social">
                            <ul id="sub-social">
                                <li>
                                    <a id="google" href="http://google.com.vn" title=""></a>
                                </li>
                                <li>
                                    <a id="facebook" href="http://facebook.com" title=""></a>
                                </li>
                                <li>
                                    <a id="skype" href="http://skype.com" title=""></a>
                                </li>
                            </ul>
                        </div>
                        <div style="margin-left: 22px; margin-top: 15px;">
                            <a  href="ymsgr:sendIM?noidayanhvancho9999">
                                <img  src="http://opi.yahoo.com/online?u=noidayanhvancho9999&m=g&t=2" alt="Yahoo" style="border: none;  width:95px; height:20px"  />
                            </a>&nbsp;&nbsp
                            <a  href="ymsgr:sendIM?noidayanhvancho9999">
                                <img  src="http://opi.yahoo.com/online?u=noidayanhvancho9999&m=g&t=2" alt="Yahoo" style="border: none; width:95px; height:20px"  />
                            </a>
                        </div>
                        <div id="contact-email">
                            <a id="ct-email" href="mailto:mymail@hotmail.com">Liên Hệ Qua Email</a>
                        </div>
                    </div>
                    <uc3:Customer_care ID="Customer_care1" runat="server" />
                    <div class="rightnav-head">Map</div>
                    <div id="map">
                        <img src="images/map.gif" width="200px" height="120px" alt="map" title="map us" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

